File Name Attribute

File Name Attributeの構造

0 1 2 3 4 5 6 7 8 9 A B C D E F
00 Parent Directory Date Created
10 Date Modified Date MFT Modified
20 Date Accessed Logical file size
30 Size on disk Flags Reparse value
40 Name
len
Name
type
Name (variable length)

Parent Directory - 親ディレクトリのFile Record Segment Header#MFT Record No
Date Created - ファイルが作成された日付
Date Modified - ファイルが更新された日付
Date MFT Modified - MFTが更新された日付
Date Accessed - ファイルがアクセスされた日付
Logical file size - 実際のファイルサイズ
Size on disk - ディスクに占めるサイズ(cluster単位でファイルのデータは保存されるのでクラスタサイズ未満の部分は切り上げ)
flags
value Meaning
0x0001 Read-Only
0x0002 Hidden
0x0004 System
0x0020 Archinve
0x0040 Device
0x0080 Normal
0x0100 Temporary
0x0200 Sparse File
0x0400 Reparse Point
0x0800 Compressed
0x1000 Offline
0x2000 Not Content Indexed
0x4000 Encrypted
0x10000000 Directory (copy from corresponding bit in MFT record)
0x20000000 Index View (copy from corresponding bit in MFT record)
Reparse value
Name len - 名前の長さ(バイト長ではない)
Name type -
value Meaning
0 POSIX (unicode, case sensitive)
1 Win32 (unicode, case insensitive)
2 DOS (8.3 ASCII, case insensitive)
3 Win32 7 DOS (when Win32 fits in DOS space)
Name - 可変長 Max244文字unicode(windows10 home)
ファイルを開く絶対パス(\含む)はMax244文字unicodeまで(windows10 home)